UI Click

Command Prototype

UiDetection.Click(objUiElement,iButton,iType,iTimeOut,optionArgs)

Command Description

Clicks an specified element after conducting UI detection

Parameter Description
Required Parameter
objUiElement--Target
iButton--Mouse button {left: left click, right: right click, middle: scroll wheel click}
iType--Click type {click: click, dbclick: double click, down: press, up: pop up}
iTimeOut--The amount of time (in milliseconds) to wait for the activity to run before the SelectorNotFoundException throws an error. The default value is 10000 milliseconds (10 seconds)
Optional Parameter
bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values ​​(True, False). The default is False
iDelayAfter--Added delay (in milliseconds) after executing the activity. Defaults to 300
iDelayBefore--Added delay (in milliseconds) before executing the activity. Defaults to 200
bSetForeground--Whether to activate the target window before executing
sCursorPosition--Describes the starting point of the cursor that adds the offset of the OffsetX and OffsetY attributes. The following options are available: TopLeft, TopRight, BottomLeft, BottomRight and Center. The default option is Center
iCursorOffsetX--According to the option selected in the "Position" field, the horizontal displacement of the cursor position
iCursorOffsetY--The vertical displacement of the cursor position according to the option selected in the "Position" field
sKeyModifiers--You can use the following options for keyboard keys pressed at the same time when triggering mouse actions: Alt, Ctrl, Shift, Win.
sSimulate--Simulation type, {default: default UIA mode, simulate: click simulation, message: windows message}

results matching ""

    No results matching ""